package com.ly.honor.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ly.honor.entity.PlayerPlace;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.honor.entity.dto.PlayerPlaceCreateDTO;
import com.ly.honor.entity.dto.PlayerPlaceEditDTO;
import com.ly.honor.entity.vo.PlayerPlaceQueryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 17798
* @description 针对表【bs_player_place】的数据库操作Mapper
* @createDate 2022-11-16 11:49:49
* @Entity com.ly.honor.entity.PlayerPlace
*/
@Mapper
public interface PlayerPlaceMapper extends BaseMapper<PlayerPlace> {

    Page<PlayerPlaceQueryVO> selectPlayerPlacePage(Page<PlayerPlaceQueryVO> playerPlaceQueryVOPage,long pageNum, long pageSize);

    PlayerPlaceQueryVO getPlayerPlaceById(@Param("id") long id);

    void insertPlayerPlace(@Param("playerPlace") PlayerPlaceCreateDTO playerPlaceCreateDTO);

    void updatePlayerPlace(@Param("playerPlace") PlayerPlaceEditDTO playerPlaceEditDTO);

    List<PlayerPlace> selectPlaceAll(@Param("gameId") long gameId);

    PlayerPlace getPlayerPlace(@Param("placeName") String placeName);
}




